package com.ming.reggie.mapper;

import com.ming.reggie.entity.DishFlavor;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface DishFlavorMapper {

    Integer addDishFlavor(@Param("dishFlavorList") List<DishFlavor> list);

    //根据菜品id获取口味列表数据
    @Select("select * from dish_flavor where dish_id = #{dishId} and is_deleted = 0")
    List<DishFlavor> findByDishId(Long dishId);
}
